package com.city.domain.house;

import java.util.Objects;

/**
 * @Author: 李顺时
 * @Description: 居民和房屋信息管理
 * @Date: Create in 17:33 2018/8/12
 * @Modified By:
 * */

public class UserManage {

    private int userId;//居民Id
    private String name; //居民姓名
    private String sex; //性别
    private String addr; // 详细地址
    private String telphone; //电话
//    private String faMenber; //家庭成员
    private String workStatus; // 工作状况

    public UserManage() {
    }

    public UserManage(int userId, String name, String sex, String addr, String telphone, String workStatus) {
        this.userId = userId;
        this.name = name;
        this.sex = sex;
        this.addr = addr;
        this.telphone = telphone;
        this.workStatus = workStatus;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public String getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(String workStatus) {
        this.workStatus = workStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserManage that = (UserManage) o;
        return userId == that.userId &&
                Objects.equals(name, that.name) &&
                Objects.equals(sex, that.sex) &&
                Objects.equals(addr, that.addr) &&
                Objects.equals(telphone, that.telphone) &&
                Objects.equals(workStatus, that.workStatus);
    }

    @Override
    public int hashCode() {

        return Objects.hash(userId, name, sex, addr, telphone, workStatus);
    }

    @Override
    public String toString() {
        return "UserManage{" +
                "userId=" + userId +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", addr='" + addr + '\'' +
                ", telphone='" + telphone + '\'' +
                ", workStatus='" + workStatus + '\'' +
                '}';
    }
}
